<?php
namespace App\Http\Controllers\Reception;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\admin\Netsetting;
use App\admin\Scrollimg;
use App\admin\Logo;
use App\admin\About;
//公司简介
class SynopsisController extends Controller
{
	public function __construct() {
//		$this->middleware('admindo');
	}
	
	public function index(Request $request)
	{
		//取网站设置
		$net = new Netsetting;
		$Netsettings = $net::find(1);
		//取滚动图片
		$scrolls = Scrollimg::get();
		//几个LOGO
		$Logos = Logo::get();
		
		$id = $request->input('id');
		$About = new About;
		$data = $About::find($id);
		$datas = About::get();
		
		if(empty($data)){
			return "没有此数据";
		}else{
			return view('reception.synopsissee',['datas'=>$datas,'data' => $data,'logo'=>$Logos,'setData'=>$Netsettings,'scrollData'=>$scrolls]);
		}
	}
	
}
